package com.fs.service.impl;

import java.util.List;

import com.fs.domain.HistoryOrders;
import com.fs.mapper.HistoryOrdersMapper;
import com.fs.service.HistoryOrdersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 历史订单Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-18
 */
@Service
public class HistoryOrdersServiceImpl implements HistoryOrdersService
{
    @Autowired
    private HistoryOrdersMapper historyOrdersMapper;

    /**
     * 查询历史订单
     * 
     * @param id 历史订单主键
     * @return 历史订单
     */
    @Override
    public HistoryOrders selectHistoryOrdersById(Long id)
    {
        return historyOrdersMapper.selectHistoryOrdersById(id);
    }

    /**
     * 查询历史订单列表
     * 
     * @param historyOrders 历史订单
     * @return 历史订单
     */
    @Override
    public List<HistoryOrders> selectHistoryOrdersList(HistoryOrders historyOrders)
    {
        return historyOrdersMapper.selectHistoryOrdersList(historyOrders);
    }

    /**
     * 新增历史订单
     * 
     * @param historyOrders 历史订单
     * @return 结果
     */
    @Override
    public int insertHistoryOrders(HistoryOrders historyOrders)
    {
        return historyOrdersMapper.insertHistoryOrders(historyOrders);
    }

    /**
     * 修改历史订单
     * 
     * @param historyOrders 历史订单
     * @return 结果
     */
    @Override
    public int updateHistoryOrders(HistoryOrders historyOrders)
    {
        return historyOrdersMapper.updateHistoryOrders(historyOrders);
    }

    /**
     * 批量删除历史订单
     * 
     * @param ids 需要删除的历史订单主键
     * @return 结果
     */
    @Override
    public int deleteHistoryOrdersByIds(Long[] ids)
    {
        return historyOrdersMapper.deleteHistoryOrdersByIds(ids);
    }

    /**
     * 删除历史订单信息
     * 
     * @param id 历史订单主键
     * @return 结果
     */
    @Override
    public int deleteHistoryOrdersById(Long id)
    {
        return historyOrdersMapper.deleteHistoryOrdersById(id);
    }
}
